<template>
    <p>这是一个全局组件</p>
    <button @click="addMus">点击加-1</button>
    <p>{{ count }}</p>
</template>

<script>
export default {
    name: "LocalComDemo",
    data() {
        return {
            count: 0
        }
    },
    methods: {
        addMus() {
            this.count--
        }
    }
}
</script>

<style scoped>
p {
    color: skyblue;
}
</style>